//
// Created by martin on 7/6/21.
//

#ifndef FTPSERVER_FTPSERVER_H
#define FTPSERVER_FTPSERVER_H

#include "common.h"

void ftpserver_process(int sock_ctl);

int ftpserver_recv_cmd(int sock_ctl, char *cmd, char *arg);

int ftpserver_check_user(const char *user, const char *pass);

int ftpserver_start_data_conn(int sock_ctl);

int ftpserver_list(int sock_data, int sock_ctl);

int ftpserver_retr(int sock_data, int sock_ctl, char *filename);

void ftpserver_push(int sock_data, int sock_ctl, char *filename);

#endif //FTPSERVER_FTPSERVER_H
